package com.cathyjava.easyflows.work.impl;

import com.cathyjava.easyflows.WorkStatus;
import com.cathyjava.easyflows.work.WorkContext;
import com.cathyjava.easyflows.work.WorkReport;

/**
 * @author chenjing
 * @date 2021/5/8
 */
public class DefaultWorkReport implements WorkReport {
    private WorkStatus workStatus;
    private WorkContext workContext;

    public DefaultWorkReport(WorkStatus status, WorkContext context) {
        this.workStatus = status;
        this.workContext = context;
    }

    @Override
    public WorkStatus getStatus() {
        return this.workStatus;
    }

    @Override
    public WorkContext getWorkContext() {
        return this.workContext;
    }
}
